#include "Number.h"

#include <iostream>

using namespace std;

Number::Number(void)
{
	m_num = 0;
}

Number::~Number(void)
{
}

int Number::get()
{
	return m_num;
}

void Number::set(int num)
{
	m_num = num;

	// update/notify when the value changed
	update();
}

/////////////////////////////////////////////////////////

BigLetter::BigLetter()
{
	m_num = 0;
}

BigLetter::~BigLetter(void)
{
}

void BigLetter::set(int num)
{
	m_num = num;
}

void BigLetter::show()
{
	cout<<"BigLetter: "<<(char)(m_num + 65)<<endl;
}

/////////////////////////////////////////////////////////

SmallLetter::SmallLetter()
{
	m_num = 0;
}

SmallLetter::~SmallLetter(void)
{
}

void SmallLetter::set(int num)
{
	m_num = num;
}

void SmallLetter::show()
{
	cout<<"SmallLetter: "<<(char)(m_num + 97)<<endl;
}
